package vn.cuhanh.bean;

public class Account {
	private int id;
	private String userName;
	private int avatarNumber;
	private String charName;
	private int dndScore;
	private int rank;
	private int zingMeId = 0;
	private int gender = 0;
	private String zingMeAvatar = null;
	private String zingMeProfileUrl = null;
	private String zingMeName = null;
	private String phoneNo;
	
	public Account(int id, String userName, int avatarNumber, String charName, int dndScore,
			int rank, int zingMeId, int gender, String zingMeAvatar,
			String zingMeProfileUrl, String zingMeName, String phoneNo) {
		super();
		this.id = id;
		this.userName = userName;
		this.avatarNumber = avatarNumber;
		this.charName = charName;
		this.dndScore = dndScore;
		this.rank = rank;
		this.zingMeId = zingMeId;
		this.gender = gender;
		this.zingMeAvatar = zingMeAvatar;
		this.zingMeProfileUrl = zingMeProfileUrl;
		this.zingMeName = zingMeName;
		this.setPhoneNo(phoneNo);
	}
	public Account(int id, String userName, String charName, int dndScore, int rank) {
		super();
		this.id = id;
		this.userName = userName;
		this.charName = charName;
		this.dndScore = dndScore;
		this.rank = rank;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public int getDndScore() {
		return dndScore;
	}
	public void setDndScore(int dndScore) {
		this.dndScore = dndScore;
	}
	public int getRank() {
		return rank;
	}
	public void setRank(int rank) {
		this.rank = rank;
	}
	public int getZingMeId() {
		return zingMeId;
	}
	public void setZingMeId(int zingMeId) {
		this.zingMeId = zingMeId;
	}
	public int getGender() {
		return gender;
	}
	public void setGender(int gender) {
		this.gender = gender;
	}
	public String getZingMeAvatar() {
		return zingMeAvatar;
	}
	public void setZingMeAvatar(String zingMeAvatar) {
		this.zingMeAvatar = zingMeAvatar;
	}
	public String getZingMeProfileUrl() {
		return zingMeProfileUrl;
	}
	public void setZingMeProfileUrl(String zingMeProfileUrl) {
		this.zingMeProfileUrl = zingMeProfileUrl;
	}
	public String getZingMeName() {
		return zingMeName;
	}
	public void setZingMeName(String zingMeName) {
		this.zingMeName = zingMeName;
	}
	public int getAvatarNumber() {
		return avatarNumber;
	}
	public void setAvatarNumber(int avatarNumber) {
		this.avatarNumber = avatarNumber;
	}
	public String getCharName() {
		return charName;
	}
	public void setCharName(String charName) {
		this.charName = charName;
	}
	public String getPhoneNo() {
		return phoneNo;
	}
	public void setPhoneNo(String phoneNo) {
		if(phoneNo == null || phoneNo.contains("null")) {
			this.phoneNo = "Không có";
			return;
		}
		this.phoneNo = phoneNo;
	}
}
